#define _CRT_SECURE_NO_WARNINGS
#include<iostream>
#include<list>
#include<assert.h>
using namespace std;

void test1()
{
	list<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_front(4);
	lt.push_front(5);
	lt.push_front(6);
	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;

	list<int>::iterator it = lt.begin();
	while (it != lt.end())
	{
		if (*it % 2 == 0)
		{
			it=lt.erase(it);
		}
		else
		{
			++it;
		}
	}

	for (auto e : lt)
	{
		cout << e << " ";
	}
	cout << endl;
}

#include "list.h"


int main()
{
	/*test1();*/
	/*char a = char();
	cout << a << endl;*/
	zzc::test4();
	return 0;
}